<html>

<head>
    <link href="./index.css" rel="stylesheet" type="text/css" />
</head>

<body>

    <div class="title-row">
        pvf编辑器:
        <select onchange="0" value="" id="pvftool">
            <option value="0">PvfUility</option>
            <option value="1">Pvfedit</option>
        </select>

        ip:<input id="ip" value="localhost" placeholder="localhost">

        端口:<input id="port" type="number" value="27000" placeholder="27000">

        <label>按"ctrl+shift+D"打开调试器</label>
    </div>
    <hr>
    <div>
        <a onclick="jump('https://gitee.com/icshare/pvfUtilityWebApi#https://gitee.com/horace2019/pvf-utility-demo')"
            class="url">
            PvfUtility API文档</a>
        <div class="space"></div>
        <a onclick="jump('https://gitee.com/KingNw/pvfedit/blob/master/HttpServer.md')" class="url">
            Pvfedit API文档</a>

    </div>
    <hr>

    <div class="search-row">
        uri:<input id="uri" value="/Api/PvfUtiltiy/GetAllLstFileList">
        <button id="getBtn" onclick="testGet()">发送get</button>
        <button id="postBtn" onclick="testPost()">发送post</button>
    </div>
    <hr>

    <div>
        <span>附加参数</span>
        <button id="jsonFt" onclick="jsonFt()">json格式化</button>
        <button id="jsonCompr" onclick="jsonCompr()">json压缩</button>
    </div>

    <hr>

    <textarea id="params" resize="false" spellcheck="false" autocapitalize="off" dir="ltr" wrap="SOFT" autocorrect="off"
        autocomplete="off" tabindex="0" spellcheck="false" placeholder="输入post请求的json参数"></textarea>

    <hr>

    <div>
        <span>返回结果</span>
        <button onclick="document.querySelector('#result').value=''">清空</button>
        <button id="rsFt" onclick="rsFt()">格式化</button>
        <button id="rsFt" onclick="rsRep()">去转义</button>
        <button id="rsUtf8" onclick="rsUtf8()" disabled>转utf-8</button>
        <button id="rsItain1" onclick="rsItain1()" disabled>转Itain1</button>
        <button id="rsCP949" onclick="rsCP949()" disabled>转cp949</button>
        <button id="rsCHT" onclick="rsCHT()" disabled>简转繁</button>
        <button id="rsCHS" onclick="rsCHS()" disabled>繁转简</button>
    </div>

    <hr>

    <textarea id="result" resize="false" spellcheck="false" autocapitalize="off" dir="ltr" wrap="SOFT" autocorrect="off"
        autocomplete="off" tabindex="0" spellcheck="false" placeholder="显示返回结果"></textarea>

    <script src="index.js"></script>
</body>

</html>